package createtype.Singleton;

/**
 * Created by LYJ on 2016/10/18.
 * 枚举式(最佳)
 * 枚举式式最简单最优秀的单例写法，可以防止反射工具
 */
public enum SingletonClass {
    INSTANCE;
    String name="ssss";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
